import {reqjson} from "@/api/api";


/**
 * 用户发送验证码
 */
export function registerVerify(data) {
  return reqjson("/register/verify", data, "POST");
}

/*
 * 用户信息
 * */
export function getUserInfo() {
  return reqjson("/user",{},"GET");
}

/*
 * 账单列表明细
 * */
export function userBill(cash) {
  return reqjson("/user/bill", cash,"GET");
}

/*
 * 账单列表分类
 * */
export function billCategory(cash) {
  return reqjson("/user/bill/category", cash,"GET");
}

/*
 * 账单详情
 * */
export function billDetail(data) {
  return reqjson("/user/bill/detail", data,"GET");
}


/*
 * 退出登录
 * */
export function getLogout() {
  return reqjson("/logout", {},"GET");
}

/*
 * 绑定手机号
 * */
export function bindingPhone(data) {
  return reqjson("/binding", data,"POST");
}
/**
 * 更改手机号码
 */
export function phoneChange(data) {
  return reqjson("/user/phone/change", data,"POST");
}

/**
 * 实名认证
 */
export function userVerify(data) {
  return reqjson("/user/verify", data,"POST");
}

/**
 * 银行卡列表
 */
export function bankList(data) {
  return reqjson("/user/bank/list", data,"GET");
}

/**
 * 添加银行卡
 */
export function bankBind(data) {
  return reqjson("/user/bank/bind", data,"POST");
}

/**
 * 解绑银行卡
 */
export function bankUnbind(data) {
  return reqjson("/user/bank/unbind", data,"POST");
}

/**
 * 操作密码设置
 */
export function setPassword(data) {
  return reqjson("/user/set/password", data,"POST");
}

/**
 * 操作密码验证
 */
export function checkPassword(data,callback) {
  return reqjson("/user/check/password", data,"POST",callback);
}


/**
 * 获取地推推广商户数量
 */
export function channelSellercount(data) {
  return reqjson("/channel/sellercount", data,"GET");
}


/**
 * 获取地推推广商户列表
 */
export function channelSellerlist(data) {
  return reqjson("/channel/sellerlist", data,"GET");
}

/**
 * 获取地推推广商户每日明细
 */
export function everydaypaysum(data) {
  return reqjson("/channel/everydaypaysum", data,"POST");
}
/**
 * 邀请好友生成二维码接口/支付收款码
 */
export function userShare(data){
	return reqjson("/user/share", data, "POST");
}
/**
 * H5邀请好友生成二维码接口/支付收款码
 */
export function userShareH5(data){
	return reqjson("/user/share_h5", data, "POST");
}
/**
 * 会员卡列表
 */
export function cardInfo(){
	return reqjson("/vip/card/info", "GET");
}
/**
 * 会员卡时长卡数据
 */
export function levelGrade(){
	return reqjson("/user/level/grade", "GET");
}
/**
 * 会员中心初始化
 */
export function userCenter(){
	return reqjson("/user/center", "GET");
}
/**
 * 升级会员差价
 */
export function levelPay(data){
	return reqjson("/user/level/pay",data, "GET");
}

/**
 * 旅游卡列表
 */
export function travelGetCardList(data){
	return reqjson("/travel/get_card_list",data, "GET");
}

/**
 * 激活旅游卡
 */
export function travelScenicBindCard(data){
	return reqjson("/travel/scenic/bind_card",data, "POST");
}
/**
 * 旅游景区列表
 */
export function travelScenicList(data){
	return reqjson("/travel/scenic/list",data, "GET");
}
/**
 * 旅游景区详情
 */
export function travelScenicInfo(data){
	return reqjson("/travel/scenic/info",data, "GET");
}
/**
 * 旅游景区预约
 */
export function travelScenicUserReserve(data){
	return reqjson("/travel/scenic/user_reserve",data, "POST");
}
/**
 * 旅游卡记录
 */
export function travelGetAllCardList(data){
	return reqjson("/travel/get_allcard_list",data, "GET");
}
/**
 * 旅游卡预约记录
 */
export function travelScenicReserveList(data){
	return reqjson("/travel/scenic/reserve_list",data, "POST");
}

/**
 * 旅游卡预约记录
 */
export function travelScenicCancelReserve(data){
	return reqjson("/travel/scenic/cancel_reserve",data, "POST");
}
/**
 * 旅游景区列表地址数据
 */
export function travelProvinceCity(data){
	return reqjson("/travel/province_city",data, "GET");
}
/**
 * 提货卡列表
 */
export function deliveryList(data){
	return reqjson("/v3/take/delivery/list",data, "GET");
}
/**
 * 获取服务站人员信息
 */
export function takeServiceStation(data){
	return reqjson("/v2/take/service/station",data, "GET");
}
/**
 * 提货卡信息
 */
export function deliveryCard(data){
	return reqjson("/v3/take/delivery/card",data, "GET");
}
/**
 * 提货卡信息
 */
export function deliveryCheckInfo(data){
	return reqjson("/v3/take/delivery/check_info",data, "POST");
}
/**
 * 提货卡购买用户修改基本信息
 */
export function takeChangeBaseInfo(data){
	return reqjson("/v3/take/change/base_info",data, "POST");
}
/**
 * 购买提货卡
 */
export function deliveryCreate(data){
	return reqjson("/v3/take/delivery/create",data, "POST");
}
/**
 * 提货卡订单支付
 */
export function takeDeliveryPay(data){
	return reqjson("/v3/take/delivery/pay",data, "POST");
}
/**
 * 提货卡订单详情
 */
export function takedeliverydetail(data){
	return reqjson("/v3/take/delivery/detail",data, "GET");
}
/**
 * 发送e签宝签署短信验证码
 */
export function takeSendCode(data){
	return reqjson("/v3/take/send/code",data, "GET");
}
/**
 * 获取提货卡合同
 */
export function deliveryExecuteFile(data){
	return reqjson("/v3/take/delivery/executeFile",data, "GET");
}
/**
 * 用户签署合同
 */
export function deliveryUserSign(data){
	return reqjson("/v3/take/delivery/user_sign",data, "POST");
}

/**
 * 提货卡取消订单
 */
export function takedeliverycancel(data){
	return reqjson("/v2/take/delivery/cancel",data, "GET");
}
/**
 * 提货卡线下支付提交审核
 */
export function takedeliveryoffline(data){
	return reqjson("/v2/take/delivery/offline",data, "POST");
}

/**
 *  线下提货方式核销
 */
export function offlineWrite(data){
	return reqjson("/take/offline/write",data, "GET");
}
/**
 *  线下提货联系人
 */
export function offlineContact(data){
	return reqjson("/take/offline/contact",data, "GET");
}
/**
 *  提货卡选择方案数据
 */
export function takeBuyScheme(data){
	return reqjson("/v3/take/buy_scheme",data, "GET");
}

/**
 *  收购合同 - 验证信息
 */
export function takeBuyFormCheckOrder(data){
	return reqjson("/v3/take/buy_form/check_order",data, "POST");
}

/**
 *  提货卡收购方案提交/修改
 */
export function takeBuyFormSave(data){
	return reqjson("/v3/take/buy_form/save",data, "POST");
}

/**
 *  发送合同邮件
 */
export function takeDeliverySendMail(data){
	return reqjson("/v3/take/delivery/send_mail",data, "POST");
}
/**
 * 个人团队人数
 */
export function teamList(data){
	return reqjson("/user/team/list",data, "GET");
}

/**
 * 余额提现
 */
export function extractCash(data){
	return reqjson("/extract/cash",data, "POST");
}

/**
 * 购买会员
 */
export function buyRights(data){
	return reqjson("/user/buy/rights",data, "POST");
}
/**
 * 获取所有卡券
 */
export function userServiceLst(){
	return reqjson("/user/service/lst");
}
/**
 * 上传身份证正反面
 */
export function userSetUsercard(data){
	return reqjson("/user/set/usercard", data, 'POST');
}
/**
 * 检测是否实名认证接口
 */
export function userPromoterCheck(){
	return reqjson('/user/promoter/check')
}
/**
 * 推广小助手申请
 */
export function userPromoterApply(data){
	return reqjson('/user/promoter/apply', data, 'POST')
}
/**
 * 小助手推广中心
 */
export function userPromoterCenter(){
	return reqjson('/user/promoter/center')
}
/**
 * 检测是否可以继续延长推广时间
 */
export function userPromoterCheck_auth(){
	return reqjson("/user/promoter/check_auth")
}
/**
 * 服务卡列表
 */
export function serviceList(data){
	return reqjson("/service/list",data,"GET")
}
/**
 * 验证服务卡是否有订单
 */
export function serviceCheckOrder(data){
	return reqjson("/service/check_order",data,"GET")
}
/**
 * 创建服务卡订单
 */
export function serviceAddOrder(data){
	return reqjson("/service/add_order",data,"POST")
}
/**
 * 服务卡订单支付
 */
export function servicePay(data){
	return reqjson("/service/pay",data,"POST")
}
/**
 * 服务卡申请服务 */
export function serviceApply(data){
	return reqjson("/service/apply",data,"POST")
}
/**
 * 服务卡申请结束服务 */
export function serviceEnd(data){
	return reqjson("/service/end",data,"POST")
}
/**
 * 服务卡记录 */
export function serviceUseRecord(data){
	return reqjson("/service/use_record",data,"GET")
}
/**
 * 服务卡取消订单*/
export function serviceCancelOrder(data){
	return reqjson("/service/cancel_order",data,"POST")
}
/**
 * 积分明细*/
export function signIntegralDetail(data){
	return reqjson("/sign/integral_detail",data,"GET")
}